package com.yl.auth.service.impl;

import com.yl.auth.entity.LaorenYaopin;
import com.yl.auth.entity.Yaopin;
import com.yl.auth.mapper.LaorenYaopinMapper;
import com.yl.auth.model.vo.LaorenYaopinVo;
import com.yl.auth.service.LaorenYaopinService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yl
 * @since 2023-06-25
 */
@Service
public class LaorenYaopinServiceImpl extends ServiceImpl<LaorenYaopinMapper, LaorenYaopin> implements LaorenYaopinService {
    @Resource
    private LaorenYaopinMapper laorenYaopinMapper;

    @Override
    public List<LaorenYaopinVo> getYyjhsz(Long id) {
        return laorenYaopinMapper.getYyjhsz(id);
    }


    @Override
    public Yaopin getyaopin(Integer id) {
        return laorenYaopinMapper.getyaopin(id);
    }

    @Override
    public void updateYaopin(Yaopin yaopin) {
        laorenYaopinMapper.updateYaopin(yaopin);
    }
}
